From a43b90e49f83d159a7a799e8792e0b800d40a03e Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 15 Jul 2014 14:35:32 +0200 Subject: [PATCH] pathbar: Implement clipping .. so the path bar's buttons can have shadows. --- gtk/gtkpathbar.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c index 599f170f8e..adb9a8f6fa 100644 --- a/gtk/gtkpathbar.c +++ b/gtk/gtkpathbar.c @@ -549,7 +549,11 @@ gtk_path_bar_size_allocate (GtkWidget *widget, /* No path is set; we don't have to allocate anything. */ if (path_bar->priv->button_list == NULL) - return; + { + _gtk_widget_set_simple_clip (widget); + + return; + } direction = gtk_widget_get_direction (widget); allocation_width = allocation->width; @@ -767,6 +771,8 @@ gtk_path_bar_size_allocate (GtkWidget *widget, if (needs_reorder) child_ordering_changed (path_bar); + + _gtk_widget_set_simple_clip (widget); } static void -- 2.30.2